<?php

function thm_get_list() {
	$sql = 'SELECT * FROM theme;';
	return query($sql);
}
function thm_get_identity($id){
	$sql = 'SELECT * FROM theme WHERE ID ='.$id.';';
	return query($sql);
}

function delete_theme($id){
	$sql = 'DELETE FROM theme WHERE ID='.$id.';';
	return query($sql);
}

function ajouter_theme($nom){
	$sql = "INSERT INTO `theme` VALUES ('', '$nom');";
	return query($sql);
}